package com.zxjbyte.yiyi.framework.web.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author zhangxingjia
 * @Date 2023/3/8 10:20
 * @Version: 1.0
 */
@Getter
@Setter
@ConfigurationProperties(WebProperties.WEB_PROP_PREFIX)
public class WebProperties {

    public static final String WEB_PROP_PREFIX = "yiyi.web";

    private ErrorLog errorLog = new ErrorLog();

    @Getter
    @Setter
    public static class ErrorLog {

        /**
         * 是否开启异常日志记录
         */
        private Boolean enabled = true;
    }
}
